﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoCadConvert
{
    public class LayerName
    {
        private static string[] sLayerNameList = new string[] { "墙", "房间","区域线","软装", "硬装", "轨迹","造型" };
        private static LayerName m_inst;
        public static LayerName instance()
        {
            if (m_inst == null)
                m_inst = new LayerName();
            return m_inst;
        }
        public string this[int index]
        {
            get
            {
                if (index >= sLayerNameList.Count())
                    throw new Exception("\n图层错误");
                return sLayerNameList[index];
            }
        }
        public int ItemCount { get { return sLayerNameList.Count(); } }
    }
}
